package router

import (
	"fx_swift_ifcgate_agent/internal/controller"
	"fx_swift_ifcgate_agent/pkg/middleware"
)

func IndexRouter() {
	apiVer := miniApiVer.Group("index", middleware.CheckAuth())
	{
		apiVer.POST("collectTrends", controller.CollectTrends)
		apiVer.POST("payTrends", controller.PayTrends)

		apiVer.GET("merchantAccount", controller.MerchantAccount)
		apiVer.GET("totalTransactionAmount", controller.TotalTransactionAmount)
		apiVer.GET("totalCommission", controller.TotalCommission)
		apiVer.GET("getPlacard", controller.GetPlacard)
	}
}
